package cn.chiship.framework.business.biz.business.service;

import cn.chiship.framework.business.biz.business.pojo.dto.OrderCreateDto;
import cn.chiship.sdk.cache.vo.CacheUserVO;
import cn.chiship.sdk.core.base.BaseResult;
import cn.chiship.sdk.framework.base.BaseService;
import cn.chiship.framework.business.biz.business.entity.BusinessOrderHeader;
import cn.chiship.framework.business.biz.business.entity.BusinessOrderHeaderExample;

/**
 * 订单主表业务接口层
 * 2023/3/26
 *
 * @author lijian
 */
public interface BusinessOrderHeaderService extends BaseService<BusinessOrderHeader, BusinessOrderHeaderExample> {
    /**
     * 订单创建
     *
     * @param orderCreateDto
     * @param cacheUserVO
     * @return
     */
    BaseResult createOrder(OrderCreateDto orderCreateDto, CacheUserVO cacheUserVO);

    /**
     * 根据订单号查询订单状态
     *
     * @param orderId
     * @return
     */
    BaseResult getOrderStatusByOrderId(String orderId);

    /**
     * 生成支付二维码
     *
     * @param orderId
     * @param payMethod
     * @return
     */
    BaseResult generatePayQrCode(String orderId, String payMethod);
}
